import request from "@/utils/request";

/**
 * 租户列表
 */
export const tenantDPageList = params => {
  return request({
    url: "/sass/tenantD/PageList",
    method: "get",
    params
  });
};

/**
 * 新增/修改
 */
export const tenantDAddOrUpdate = data => {
  return request({
    url: "/sass/tenantD/update",
    method: "post",
    data
  });
};

/**
 * 删除
 */
export const tenantDDelete = id => {
  return request({
    url: `/sass/tenantD/delete/${id}`,
    method: "delete"
  });
};

/**
 * 详情
 */
export const tenantDDetail = id => {
  return request({
    url: `/sass/tenantD/get/${id}`,
    method: "get"
  });
};
